
<div class="twidth">
<div id="position"><a href="<?php echo site_url();?>">首页</a>&nbsp;&gt;&nbsp;<?php echo $current_title;?></div>
  <div id="middle" class="clear">
  
    <div class="conL">
    
      <div class="w210 left"> 
        <!--目的地-->
        <div class="gbox">
          <div class="titcon"><em class="png">目的地</em></div>
          <div class="cont">
            <dl class="deslist">
              <dt>精品目的地</dt>
              <dd class="clear">
				<?php foreach($CityClass['parentid'][0] as $key=>$value){	//筛选数组parentid为0的结果?>	
					<a href="<?php echo site_url();?>/ticket/city/<?php echo $key?>"><?php echo $value;?></a>  
				<?php }?>			
			  </dd>
            </dl>
          </div>
          <div class="bot">
            <div class="in"></div>
          </div>
        </div>
        <!--/目的地--> 
      </div>
      <div class="w500 right"> 
        
        <!--推荐门票-->
        <div class="rbox">
          <div class="titcon"><em class="png">推荐门票</em></div>
          <div class="cont"> 
          <ul class="ticketlist clear">
			<?php foreach($RecommendList as $item){
					$pics="";$links="";
					$pics=$this->platform->file_url($item->folder.'/'.$item->name.'.'.$item->type);
					$links=site_url()."/ticket/show/".$item->id;			
					if(!$pics){$pics="/templates/img/nopic.jpg";}
			?>
				<li> <a href="<?php echo $links;?>" title="<?php echo $item->ticketTitle?>"> <img src="<?php echo $pics;?>" alt="<?php echo $item->ticketTitle?>"><h4><?php echo $item->ticketTitle?></h4></a><p><em>¥<?php echo $item->pricePer?></em><a href="/ticketOrder.aspx?oid=14&amp;n=1" class="btn">预订</a> 市场价：¥<?php echo $item->otherPrice?></p></li>
			<?php }?>		
		 </ul>
          </div>
          <div class="bot">
            <div class="in"></div>
          </div>
        </div>
        <!--/推荐门票--> 
        
      </div>
      <div class="blank10"></div>
       <img src="images/orderticket.jpg" alt="">
       <div class="blank10"></div>
      <!--热门门票-->
      <div class="mbox">
        <div class="titcon"><em class="png">热门门票</em></div>
        <div class="cont">  
        <ul class="ticketlist clear">
			<?php foreach($HotTicketList as $item){
					$pics="";$links="";
					$pics=$this->platform->file_url($item->folder.'/'.$item->name.'.'.$item->type);
					$links=site_url()."/ticket/show/".$item->id;			
					if(!$pics){$pics="/templates/img/nopic.jpg";}
			?>		
				<li> <a href="<?php echo $links;?>" title="<?php echo $item->ticketTitle?>"> <img src="<?php echo $pics;?>" alt="<?php echo $item->ticketTitle?>"><h4><?php echo $item->ticketTitle?></h4></a><p><em>¥<?php echo $item->pricePer?></em><a href="/ticketOrder.aspx?oid=14&amp;n=1" class="btn">预订</a> 市场价：¥<?php echo $item->otherPrice?></p></li>
			<?php }?>	
        </ul>
        </div>
        <div class="bot">
          <div class="in"></div>
        </div>
      </div>
      <!--/热门门票--> 
      
    </div>
    <div class="conR"> 
      <!--最新门票-->
      <div class="lbox">
        <div class="titcon">
          <h2>最新门票</h2>
        </div>
        <div class="cont"> 
        <ul class="ticketlist clear">
			<?php foreach($HotTicketList as $item){
					$pics="";$links="";
					$pics=$this->platform->file_url($item->folder.'/'.$item->name.'.'.$item->type);
					$links=site_url()."/ticket/show/".$item->id;			
					if(!$pics){$pics="img/nopic.jpg";}
			?>			
				<li><a href="<?php echo $links;?>" title="<?php echo $item->ticketTitle?>"><?php echo $item->ticketTitle?></a></li>
			<?php }?>	
        </ul>
         </div>
         <div class="bot"><div class="in"></div></div>
      </div>
      <!--/最新门票-->
      <div class="blank10"></div>
      <!--最新预订-->
      <div class="lbox">
        <div class="titcon">
          <h2>最新预订</h2>
        </div>
        <div class="cont">
        
        
        <ul class="picsum clear">
			<?php foreach($LastTicketOrder["list"] as $item){
					$pics="";$links="";
					if(!empty($LastTicketOrder['arr'][$item->tid])){
						$pics=$this->platform->file_url($LastTicketOrder['arr'][$item->tid][0]->folder.'/'.$LastTicketOrder['arr'][$item->tid][0]->name.'.'.$LastTicketOrder['arr'][$item->tid][0]->type);
					}
					$links=site_url()."/ticket/show/".$item->tid;			
					if(!$pics){$pics="img/nopic.jpg";}
					$timediff=(int)((time()-$item->create_time)/(3600*24));	//预定时间减当前时间
					$timeType="天前";
					if($timediff==0){
						$timediff=(int)((time()-$item->create_time)/(3600));
						$timeType="小时前";
						if($timediff==0){
							$timediff="刚刚";
							$timeType="";						
						}
						
					}
			?>				
			<li><img height="64" src="<?php echo $pics;?>" width="94"><p>用户：匿名<br><?php echo $timediff.$timeType;?>预订了:<br><a class="bulk" href="<?php echo $links;?>"><?php echo $item->ticketTitle?></a></p></li><br>
			<?php }?>	
        </ul>

		
		
		 </div>
         <div class="bot"><div class="in"></div></div>
      </div>
      <!--/最新预订--> 
      
    </div>
  </div>
  
  <dl id="footguide">
<dt>旅游网站</dt>
<dd><li>价格实惠<br>支付方便</li>
<li>强强联手<br>优质服务</li>
<li>全球品牌<br>安全保证</li>
<li>全天客服<br>实时在线</li>
<li>流程简单<br>操作方便</li></dd>
</dl>
</div>
<div id="footer">
  <div class="footnav"><a href="/intro.aspx?ID=7" target="_blank">市场合作</a> | <a href="/intro.aspx?ID=6" target="_blank">广告投放</a> | <a href="/intro.aspx?ID=5" target="_blank">服务条款</a> | <a href="/admin/login.aspx" target="_blank">管理入口</a> | <a href="#" target="_blank">在线客服</a> | <a href="/intro.aspx?ID=1" target="_blank">联系我们</a> </div>
  <div class="copy"><p>
	版权所有&nbsp;全国客服热线：400 000 0000 客服QQ:123456 100000<br>
	<span style="color: #f00">底部信息可以在后台系统设置中进行修改</span><br>
	Copyright © XXXX公司 &nbsp; ICP备000000号</p></div>
</div>
<div id="bodybg"></div>
<!--[if IE 6]>
<script src="/js/DD_belatedPNG.js"></script>
<script>
  DD_belatedPNG.fix('img,.png');
</script>
<![endif]-->




</body></html>